package com.web.manager.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@TableName("student")  //表的名字
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Student extends User{
    @TableId(type = IdType.AUTO)
    private Integer id; //ID
    private String img; //图像url
    private String username; //用户名
    private String password; //密码
    private String gender; //性别 , 1 男, 2 女
    private String  phone;
    private String  email;
    private String name;
    private String role;
    private String major;
    private Integer majorid;

    @TableField(exist = false)  //该字段在数据库中不存在
    private String token;
}
